    <div class="container containerShadow">
        <div class="row">
            <div class="topimg">
                <div class="left pull-left">
                    <span>司法进展</span>
                </div>
                <!--<div class="pull-right">
                <a href="###">
                <img src="image/projectDetails/edit.png" >
                </a>
            </div>-->
            </div>
            <form action="" method="post" class="clearfix">
                <div class="clearfix">
                    <label for="" class="pull-left">判   决</label>
                    <textarea name="" rows="" cols="" class="pull-right textarea-edit31" id="judgement"><?= !empty($Lawsuit['judgement'])?$Lawsuit['judgement']:'';?></textarea>
                </div>
                <div class="clearfix">
                    <label for="" class="pull-left">执   行</label>
                    <textarea name="" rows="" cols="" class="pull-right textarea-edit31" id="execution"><?= !empty($Lawsuit['execution'])?$Lawsuit['execution']:'';?></textarea>
                </div>
                <div class="clearfix">
                    <label for="" class="pull-left">法   院</label>
                    <textarea name="" rows="" cols="" class="pull-right textarea-edit31" id="court"><?= !empty($Lawsuit['court'])?$Lawsuit['court']:'';?></textarea>
                </div>
                <div class="clearfix">
                    <label for="" class="pull-left">列失信</label>
                    <textarea name="" rows="" cols="" class="pull-right textarea-edit31" id="block"><?= !empty($Lawsuit['block'])?$Lawsuit['block']:'';?></textarea>
                </div>

                <div class="cancelInConfirm clearfix">
                    <!--<input id="confirm" type="submit" value="保存" id="confirm"/>-->
                    <input id="ajaxLawsuit" class="cancelInConfirmActive" type="button" value="保存" />
                    <input id='cancelSiFa' type="button" value="取消" />
                </div>

            </form>

        </div>
    </div>
	<!-- textarea 高度设置对比div -->
	<div style="max-height: 1px; overflow: hidden;">
		<div id="d2" style="visibility:hidden;min-height: 80px;"></div>
	</div>

<script>
    $(function () {
	    $.validator.setDefaults({
		   debug: true
		});
	     $("#jiBenXinXi").validate({});
	     
	  
        var judgement = ''; //
        var execution = ''; //
        var court = ''; //
        var block = ''; //
        var data = {};
//        保存
        $("#ajaxLawsuit").click(function () {
            judgement = $("#judgement").val();
            execution = $("#execution").val();
            court = $("#court").val();
            block = $("#block").val();
            data = {
                'judgement':judgement,
                'execution':execution,
                'court':court,
                'block':block,
                'project_id':project_id,
                'package_id':package_id,
            }
            console.log(data);
            $.post('/project/ajax-save-lawsuit-project',{'data':data},function (res) {
                var JSONData = JSON.parse(res)
                if (JSONData.code == 200){
                    layer.msg(JSONData.message);
                    siFaW();
                }else{
                    layer.msg(JSONData.message);
                }
            })
        })
        //-----------------渲染无编辑页面--------------------
        function siFaW() {
            $.get('/project/get-base-data',{'project_id':project_id,'postion':4},function (res) {
                $(".siFaW").children().remove();
                $(".siFaW").html(res);
                $(".siFaEdit").children().remove();
                $(".siFaW").show();
            })
        }
        //---取消按钮
        $("#cancelSiFa").click(function () {
            $.post('/project/ajax-un-lock',{'postion':4,'project_id':project_id},function (res) {
                var JSONData = JSON.parse(res)
                if (JSONData.code == 200){
                    layer.msg(JSONData.message);
                }else{
                    layer.msg(JSONData.message);
                }
            })
            $(".siFaEdit").hide();
            $(".siFaW").show();
        })
        
        // textarea 高度展示问题和高亮显示开始
		  $(".textarea-edit31").on('focus',function(){
		  	textareaHeight(this);
		 	$(this).css({
					"border":"1px solid #2194f1"
			})
		  })
		  $(".textarea-edit31").on('blur',function(){
		 	$(this).css({
					"border":"1px solid #e2e2e2"
			})
		 })
		  $(".textarea-edit31").on('keyup',function(){
	     	textareaHeight(this);
	     })
	     // textarea 高度展示问题和高亮显示结束	  
     	 function textareaHeight(th){
	    	 var valText = $(th).val();
	    	 console.log(valText)
		      $("#d2").width($(th).width())
		      $("#d2").html("<pre>" +valText+" "+"</pre>");
		      var h = $("#d2").height();
		       console.log(h)
			   $(th).height(h);
		}
        

	
    })
</script>